<template>
  <!-- 我是个轮播啊 -->
  <div class="wrapper">
    <swiper :options="swiperOption" >
      <swiper-slide><img src="@/assets/images/Home/banner1.png" alt="" /></swiper-slide>
      <swiper-slide><img src="@/assets/images/Home/banner2.png" alt="" /></swiper-slide>
      <div class="swiper-pagination"  slot="pagination"></div>
    </swiper>
  </div>
</template>

<script>
export default {
  name: 'IndexHeader',
  data () {
    return {
      swiperOption: {
        pagination: '.swiper-pagination',
        loop: true
      }
    }
  }
}
</script>

<style lang="stylus" scoped>
  .wrapper >>> img
    width 100%
    .wrapper
      width 100%
      height 0
      overflow hidden
      padding-bottom 43%
</style>
